package com.qfedu.scheduled;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 概述:
 *
 * @Author: Tbh
 * @Date: 2022/6/21 19:59
 */

//@Component
public class MyScheduled {

    @Scheduled(cron = "0/2 * * * * ?")
    public void show() {
        System.out.println("excute...."+new Date());
    }
}
